package com.hc.pingtan.service.impl;

import com.hc.pingtan.model.CommonResult;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hc.pingtan.model.QsJobs;
import com.hc.pingtan.mapper.QsJobsMapper;
import com.hc.pingtan.service.IQsJobsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author astupidcoder
 * @since 2021-10-27
 */
@Service
@DS("db2")
public class QsJobsServiceImpl extends ServiceImpl<QsJobsMapper, QsJobs> implements IQsJobsService {

    @Override
    public List<QsJobs> findQsJobs() {
        return super.baseMapper.findQsJobs();
    }

    @Override
    public String findQsJobMember(String jobId) {
        if (StringUtils.isNotBlank(jobId)) {
            return super.baseMapper.findQsJobMember(jobId);
        } else {
            return "";
        }

    }
}
